
import cv2
import os
import numpy as np

path="1/Image_20211008134919402.jpg"
image = cv2.imread(path)
img_temp = image.copy()
unique, counts = np.unique(img_temp.reshape(-1, 3), axis=0, return_counts=True)
#img_temp[:, :, 0], img_temp[:, :, 1], img_temp[:, :, 2] = unique[np.argmax(counts)]
print(unique[np.argmax(counts)])

#show_img_compar(img, img_temp)
